package cn.com.cfae.iras.doc.analyze.parse.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 盈利能力
 */
public class YLNLModel extends BizBaseModel {

    /**
     * 盈利能力
     */
    public static String MODEL_NAME = "YLNL";

    private static Map<String, String> items = new HashMap<>();

    /**
     * 营业毛利率
     */
    private static String YYMLL = "YYMLL";
    /**
     * 营业净利率
     */
    private static String YYJLL = "YYJLL";

    /**
     * 总资产报酬率
     */
    private static String ZZCBCL = "ZZCBCL";
    private static String ZZCSYL = "ZZCSYL";

    /**
     * 净资产收益率
     */
    private static String JZCSYL = "JZCSYL";

    /**
     * 营业利润率
     */
    private static String YYLRL = "YYLRL";

    static {
        items.put(YYMLL, "营业毛利率|毛利率");
        items.put(YYJLL, "营业净利率|净利润率");
        items.put(ZZCBCL, "总资产报酬率");
        items.put(ZZCSYL, "总资产收益率");
        items.put(JZCSYL, "净资产收益率");
        items.put(YYLRL, "营业利润率|业务利润率");

    }

    public static List<ExtractItem> createExtractItemList() {
        List<ExtractItem> extractItemList = new ArrayList<>();
        items.forEach((key, value) -> {
            ExtractItem extractItem = new ExtractItem();
            extractItem.setItemName(key);
            extractItem.setSynonyms(value.split(SYNONYM_SPLIT_CHAR));
            extractItemList.add(extractItem);
        });
        return extractItemList;
    }

}
